package com.example.wlzz.repository;

import com.example.wlzz.entity.Banner;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BannerRepository extends JpaRepository<Banner,Integer>{
    Banner findById(int id);
    List<Banner> findByFlag(int flag);
}
